<!-- Begin hrmd/primes.tpl -->
<form method="post" action="?module=hrmd&action=score_team&submit=true&load={$load}">
{opentable}
{titlebar colspan=2 title=$lg->score_team}
<tr>{$year}</tr>
<tr>{$team}</tr>
</table>
<input type="submit" name="load" class="button" align="left" value="{$lg->load}" />
<input type="submit" name="genr" class="button" align="left" value="{$lg->generate}" />

<br><br>
{opentable}
{if is_array($t_edit) }
	{if is_array($t_perio) }
		<tr  >
			<td width="15%"></td>
		{foreach from=$t_perio key=ltext item=s_perio}
			<td class="sectiontableheader"  align="center" width="20%" colspan="5">{$ltext}
				{if $load}
					{if $s_perio.lock eq "2"}
						<input type="image" name="unlock" value="{$s_perio.numbr}" src="{$smarty.env.imgs.unlock}" class= "icons" title="{$lg->unlock}"/>	
					{else}
						<input type="image" name="lock" value="{$s_perio.numbr}" src="{$smarty.env.imgs.lock}" class= "icons" title="{$lg->lock}" />
					{/if}
				{/if}
			</td>
		{/foreach}
		</tr>
		<tr class="sectiontableheader" align="center" >
			<td width="15%">{$lg->user}</td>
		{foreach from=$t_perio key=ltext item=s_perio}
				<td >{$lg->nbtck}</td>		
				<td >{$lg->perf} (%)</td>
				<td >{$lg->staffing} (%)</td>
				<td >{$lg->score}</td>
				<td >{$lg->handv_s}</td>
		{/foreach}
		</tr>
	{/if}
	{foreach from=$t_edit key=idusr item=t_users}
			<tr class="sectiontableentry1" align="center">
				<td align="center">{uname_detail id=$idusr}</td>
			{foreach from=$t_users key=trinb item=s_users}
				<td >{$s_users.tcknb} </td>
				<td ><a href="?module=hrmd&action=score_user&idusr={$idusr}&perio-low={$s_users.sdate}&submit=true&perio-high={$s_users.edate}">{$s_users.perf|string_format:"%.0f"}</a></td>
				<td ><a href="?module=hrmd&action=staff_team&uname={$idusr}&perio-low={$s_users.sdate}&submit=true&perio-high={$s_users.edate}">{$s_users.staff|string_format:"%.2f"}</a></td>
				<td >{$s_users.score|string_format:"%.0f"} </td>
				<td >{$s_users.handv|string_format:"%.0f"} </td>
			{/foreach}
			</tr>
	{/foreach}
{/if}
</table>
<br>
<input type="submit" name="save" class="button" align="left" value="{$lg->save}" />
</form>
<!-- End hrmd/primes.tpl -->